package lab02.test36;

public class Postgraduate extends Student {
    @Override
    void getGradeLevel(int[] grade) {
        int average = (grade[0] + grade[1] + grade[2]) / 3;
        if (average > 90 && average < 100) {
            System.out.println("  优秀");
        } else if (average > 80 && average < 90) {
            System.out.println("  良好");
        } else if (average > 70 && average < 80) {
            System.out.println("  一般");
        } else if (average > 60 && average < 70) {
            System.out.println("  及格");
        } else if (average < 60) {
            System.out.println("  不及格");
        }
    }
}
